package user;

import Operation.*;

import java.util.Scanner;

public class AdminUser extends User{
    public AdminUser(String name) {
        super(name);
        this.ioPerations = new IOPeration[]{
                new ExitOperation(),
                new addOperation(),
                new BorrowedOperation(),
                new DelOperation(),
                new FindOperation(),
                new ShowOperation(),
                new ReturnOperation()
        };
    }
    public int menu(){
        System.out.println("*****************************************");
        System.out.println("hello "+ name +"欢迎进入管理员系统！");
        System.out.println("1,添加图书！");
        System.out.println("2,借阅图书！");
        System.out.println("3,删除图书！");
        System.out.println("4,查找图书！");
        System.out.println("5,显示图书！");
        System.out.println("6,归还图书！");
        System.out.println("0,退出系统！");
        System.out.println("*****************************************");
        System.out.println("请输入你的操作！");
        Scanner scanner = new Scanner(System.in);
        int choice2 = scanner.nextInt();
        return choice2;
    }
}
